<!DOCTYPE html>
<html>
<head>
<title>按钮管理</title>
#parse("common/header.html")
</head>
<body>
<div id="app" v-cloak>

    <div v-show="showList">
        <div class="grid-btn">
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>
        <table id="grid"></table>
        <div id="gridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        
        <div style="height: 20px;"></div>
        <el-form :model="button" :rules="rules" ref="button" label-width="100px" class="demo-ruleForm">
        
            <el-form-item label="按钮名称" prop="buttonName">
                <el-input v-model="button.buttonName" placeholder="按钮名称"></el-input>
            </el-form-item>
            
            <el-form-item label="授权标识" prop="accessCode">
                <el-input v-model="button.accessCode" placeholder="多个用逗号分隔，如：add,update,delete"></el-input>
            </el-form-item>
            
            <el-form-item label="排序字段" prop="orderColumn">
                <el-input-number v-model="button.orderColumn" :min="1" step="1"></el-input-number>
            </el-form-item>
            
            <el-form-item>
                <!-- <el-button type="primary" @click="saveOrUpdate('button')">保存</el-button>
                <el-button @click="">重置</el-button>
                <el-button @click="reload">返回</el-button> -->
                <input type="button" class="btn btn-primary" @click="saveOrUpdate('button')" value="确定"/>
                &nbsp;&nbsp;
                <!-- <input type="button" class="btn btn-info" @click="resetForm('button')" value="重置"/>
                &nbsp;&nbsp; -->
                <input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </el-form-item>
            
            
            
        </el-form>
        
    </div>
  
</div>

<script src="${rc.contextPath}/js/sys/button.js?_${date.systemTime}"></script>
</body>
</html>